package ex0.expressions;

/**
 * Created with IntelliJ IDEA.
 * User: Roi
 * Date: 10/18/13
 */
public class Number implements IExpression {

    private Double value;

    public Number(Double value) {
        this.value = value;
    }

    @Override
    public Double evaluate() {
        return value;
    }

    @Override
    public String toStr() {
        return String.valueOf(value);
    }
}
